import request from '@/utils/request'

// 查询仪表信息列表
export function listMeterInfo(query) {
  return request({
    url: '/basic/meterInfo/list',
    method: 'get',
    params: query
  })
}

// 查询仪表信息详细
export function getMeterInfo(id) {
  return request({
    url: '/basic/meterInfo/' + id,
    method: 'get'
  })
}

// 新增仪表信息
export function addMeterInfo(data) {
  return request({
    url: '/basic/meterInfo',
    method: 'post',
    data: data
  })
}

// 修改仪表信息
export function updateMeterInfo(data) {
  return request({
    url: '/basic/meterInfo',
    method: 'put',
    data: data
  })
}

// 删除仪表信息
export function delMeterInfo(id) {
  return request({
    url: '/basic/meterInfo/' + id,
    method: 'delete'
  })
}

// 导出仪表信息
export function exportMeterInfo(query) {
  return request({
    url: '/basic/meterInfo/export',
    method: 'get',
    params: query
  })
}